//
//  WSPayRequest.m
//  CharonTVProject
//
//  Created by karong on 2023/8/11.
//

#import "WSPayRequest.h"

@implementation WSPayRequest
+ (void)payWithChapter_id:(NSInteger)chapter_id success:(charonTV_StringBlock)success failed:(Failure)failed {
    NSString * url = API_CHARONTV_SHOTTV_BUY;
    NSDictionary * parameters = @{@"chapter_id":@(chapter_id)};
    [self postWithURLString:url parameters:parameters success:^(NSDictionary * _Nonnull responseDict) {
        [appUserCenter getUserInfocharonTV_Request];
        NSString * videoUrl = responseDict[@"url"];
        success(videoUrl);
    } failure:failed];
}
@end
